import os
from datetime import timedelta

SECRET_KEY = "dfasdfsdflasdjfl"

# 项目根路径
BASE_DIR = os.path.dirname(__file__)

# DB_USERNAME = 'root'
# DB_PASSWORD = '123456'
# DB_HOST = '127.0.0.1'
# DB_PORT = '3306'
# DB_NAME = 'subtitle'

DB_USERNAME = 'jiaolian_ck'
DB_PASSWORD = 'Jiaolian123*'
DB_HOST = 'rm-bp1zfs02fyx1a981wbo.rwlb.rds.aliyuncs.com'
DB_PORT = '3306'
DB_NAME = 'subtitle'


DB_URI = 'mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8mb4' % (DB_USERNAME,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME)

SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False

